<template>
  <div class="box">
    <h1>Child</h1>

     <!-- 
      v-bind:批量传递props
      v-on:批量绑定自定义事件
     -->

     <Grandson v-bind="$attrs" v-on="$listeners"/>
  </div>
</template>

<script>
import Grandson from './Grandson.vue'
export default {
  name: "Child",
  props: ["name" , "getData1"],
  components:{
    Grandson
  },

 mounted() {
  console.log(this.$attrs);
 },

};
</script>

<style scoped>
.box {
  background: yellowgreen;
}
</style>
